home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / amos / AMOSList-0998.lzh / AMOSLIST / 000176_bounce-amos-lis…et@onelist.com_Tue Sep 8 15:16:47 1998.msg < prev    next >
Text File  |  1998-10-01  |  13KB  |  739 lines

  1. >From bounce-amos-list--1037-mcox=access.digex.net@onelist.com  Tue Sep  8 15:16:47 1998
  2. Received: from onelist.com (pop.onelist.com [209.207.135.229])
  3.     by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id PAA29902
  4.     for <mcox@access.digex.net>; Tue, 8 Sep 1998 15:16:47 -0400 (EDT)
  5. Received: (qmail 4002 invoked by alias); 8 Sep 1998 19:14:29 -0000
  6. Received: (qmail 3992 invoked from network); 8 Sep 1998 19:14:27 -0000
  7. Received: from unknown (HELO mail.enterprise.net) (194.72.192.18) by pop.onelist.com with SMTP; 8 Sep 1998 19:14:27 -0000
  8. Received: from enterprise.net (root@ppp-204.telinco.net [195.188.53.160]) by mail.enterprise.net (8.8.5/8.8.5) with SMTP id UAA29112 for <amos-list@onelist.com>; Tue, 8 Sep 1998 20:16:34 +0100 (GMT/BST)
  9. From: Andrew Crowe <andrewcrowe@enterprise.net>
  10. To: amos-list@onelist.com
  11. Date: Tue, 08 Sep 1998 20:14:05 +0000
  12. Message-ID: <yam7555.298.1197043328@mail.enterprise.net>
  13. In-Reply-To: <yam7555.701.3313144@mail.flashback.net>
  14. X-Mailer: YAM 2.0 Preview5 - Amiga Mailer by Marcel Beck - http://www.yam.ch
  15. Organization: Manta Soft
  16. Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
  17. Delivered-To: mailing list amos-list@onelist.com
  18. Precedence: bulk
  19. Reply-to: amos-list@onelist.com
  20. Mime-Version: 1.0
  21. Content-type: multipart/mixed; boundary="BOUNDARY.1197043328.2"
  22. Subject: [amos-list] faster line vector proggy
  23. Status: O
  24. X-Status: 
  25.  
  26. From: Andrew Crowe <andrewcrowe@enterprise.net>
  27.  
  28. Warning: This is a message in MIME format. Your mail reader does not
  29. support MIME. Some parts of this message will be readable as plain text.
  30. To see the rest, you will need to upgrade your mail reader.
  31.  
  32.  
  33. --BOUNDARY.1197043328.2
  34. Content-Type: text/plain
  35.  
  36. Hi Everybody,
  37.  
  38.     Now my vector drawing program runs all my shapes at 50fps on a
  39. lowres 2 colour screen when compiled. its still quite slow, but it does
  40. work quite well. (might make a game with it when I've sorted out my RPG
  41. engine)
  42.  
  43.  
  44. See ya.
  45. -- 
  46.                                 <PRE>
  47.   - --------------------- Quote of the day: ---------------------- -
  48. It is better to have tried and failed than to have failed to try, but
  49. the result's the same.
  50. -- Mike Dennison
  51.  
  52. +--------------------------------------------------------------------+
  53. |                                                ,aNNN               |
  54. |  a&   NL                 ,a,                 ,gNNNNN               |
  55. |  @7L d 0   ,a,,aw ,a,,  JN Q,  ,a,,aw,,,,  ,gNM"`NN'               |
  56. | J  9w"  K N" "" NN"""""WF  ~3&N" "" N   ""^N"    NF                |
  57. | N , " , Nd ,@M, NN JML @ML d@N ,@4, N       ',  JK                 |
  58. |d JMc dN  N  NN  NN 0 1 1J1 0 0  NN  N         L,K                  |
  59. |N,N 0w' Na@h,,a,,NQ,0 &J1J&,0  \,,a,,N         JF                   |
  60. | ""  "  ~"  ""~"""~"" ""  """  t""~"""        j"1                   |
  61. |                               F             JgmJ        ,gm        |
  62. |                               F            N"  N  ,,    F ,N gNN   |
  63. |      Andrew Crowe             Q          jJF  mP p""9w,NL NwmP 0mw |
  64. |      ~~~~~~~~~~~~             ]         / I  0 F@ am, Nw  ,0&   ,N |
  65. |       Manta Soft             ,F\      a' ,N  Nf L E 0 0ML N""N 0"  |
  66. |       ~~~~~~~~~~            ,N  \,  ,P N@"  JF  & `@" NJL N  N 0   |
  67. |                            ,N     ad"   \wam"   `Nx,aN JNmN  NmN   |
  68. |                            NN ,,gN" ""PP"                          |
  69. |                           dNNNNN"                                  |
  70. |                           NNN@"      Web Designing and          // |
  71. | Visit our Web Site:       ""               Amiga Programming \\//  |
  72. |                                                                    |
  73. |     HTTP://www.geocities.com/Eureka/Gold/1713/                     |
  74. |                                                                    |
  75. +----------------------------+      This signature was created using |
  76. | andrewcrowe@enterprise.net |         AsciiArt Studio               |
  77. +----------------------------+---------------------------------------+
  78.                                 </PRE>
  79. --BOUNDARY.1197043328.2
  80. Content-Type: text/plain; charset=iso-8859-1; name="Vector.asc"
  81. Content-Disposition: attachment; filename="Vector.asc"
  82. Content-Transfer-Encoding: quoted-printable
  83.  
  84. Set Buffer 64
  85. '
  86. 'Rotating line gfx by
  87. '
  88. '     andrewcrowe@enterprise.net =
  89.  
  90. '
  91.  
  92. Dim TMP(5,99,3),POS(5,99,3),SN#(360),CS#(360)
  93. Global TMP(),POS(),SN#(),CS#()
  94.  
  95. Degree =
  96.  
  97.  
  98. For A=3D0 To 359
  99.    SN#(A)=3DSin(A)
  100.    CS#(A)=3DCos(A)
  101.    SN#(A)=3DSN#(A)/32
  102.    CS#(A)=3DCS#(A)/32
  103. Next =
  104.  
  105.  
  106.  
  107. '
  108. ' PS. limit of 99 lines per shape  =
  109.  
  110. '    (not going to use more then that are you?)
  111. '
  112. ' Format used to store line gfx:   =
  113.  
  114. '
  115. ' TMP(shape_no,line_no,n)  =
  116.  
  117. '
  118. ' n=3D0 - X1 =
  119.  
  120. ' n=3D1 - Y1 =
  121.  
  122. ' n=3D2 - X2 =
  123.  
  124. ' n=3D3 - Y3 =
  125.  
  126. '  =
  127.  
  128. ' Pos(shape_no,line_number,n)  =
  129.  
  130. '
  131. ' n=3D0 - Ang1 =
  132.  
  133. ' n=3D1 - Dist1  =
  134.  
  135. ' n=3D2 - Ang2 =
  136.  
  137. ' n=3D3 - Dist2  =
  138.  
  139. '  =
  140.  
  141.  
  142. GRID=3D16
  143. '  =
  144.  
  145. ' Grid Makes it easier to make shapes  =
  146.  
  147. '  =
  148.  
  149. '   ( use + and - to adjust in editor no not change that line /\ ) =
  150.  
  151. '
  152.  
  153. Degree =
  154.  
  155.  
  156. '
  157. ' Use degrees! =
  158.  
  159. '
  160.  
  161.  
  162. Change Mouse 2
  163.  
  164. Screen Open 0,320,200,4,Lowres
  165. Flash Off =
  166.  
  167. Colour 1,$FFF
  168. Colour 2,$666
  169. Colour 3,$F00
  170. Curs Off =
  171.  
  172. Cls 0
  173.  
  174. Double Buffer =
  175.  
  176. Autoback 0
  177.  
  178. Print At(0,0);"Please select centre of rotation"
  179.  
  180. Screen Swap =
  181.  
  182.  
  183. Repeat =
  184.  
  185.    X=3DX Screen(X Mouse)/GRID
  186.    Y=3DY Screen(Y Mouse)/GRID
  187.    X=3DX*GRID
  188.    Y=3DY*GRID
  189.    CX=3DX
  190.    CY=3DY
  191.    Wait Vbl =
  192.  
  193. Until Mouse Key
  194.  
  195. Cls 0
  196.  
  197. Print At(0,0);"Please draw the shape with left mouse"
  198. Print "  Middle mouse deletes last line done"
  199. Print "(Press Right mouse when finished)"
  200. Print =
  201.  
  202. Print "  Press mouse to continue"
  203.  
  204. Plot CX,CY
  205.  
  206.  
  207. Screen Swap =
  208.  
  209.  
  210. Repeat : Wait Vbl : Until Mouse Key=3D0
  211. Repeat : Wait Vbl : Until Mouse Key
  212. Repeat : Wait Vbl : Until Mouse Key=3D0
  213.  
  214. NUN=3D-1
  215.  
  216. BUFF=3D-1
  217.  
  218. For A=3D0 To 99
  219.    TMP(0,A,0)=3D-1
  220. Next =
  221.  
  222.  
  223. '
  224. '  Clear line buffer to avoid doing too many lines when drawing
  225. '
  226. '
  227. '
  228.  
  229.  
  230. Repeat =
  231.  
  232.    =
  233.  
  234.    X=3DX Screen(X Mouse)/GRID
  235.    Y=3DY Screen(Y Mouse)/GRID
  236.    M=3DMouse Key
  237.    X=3DX*GRID
  238.    Y=3DY*GRID
  239.    I$=3DInkey$
  240.    =
  241.  
  242.    If I$=3D"l"
  243.       Gosub L
  244.       UNCONVERT[0,CX,CY]
  245.       BUFF=3DParam
  246.    End If =
  247.  
  248.    If I$=3D"s"
  249.       CONVERTSHAPE[0,CX,CY]
  250.       Gosub S
  251.    End If =
  252.  
  253.    =
  254.  
  255.    If I$=3D"=3D"
  256.       Add GRID,GRID,1 To 16
  257.    End If =
  258.  
  259.    If I$=3D"-"
  260.       Add GRID,-GRID/2,1 To 16
  261.    End If =
  262.  
  263.    =
  264.  
  265.    If GRID>1
  266.       For GX=3D0 To 320 Step GRID
  267.          For GY=3D0 To 200 Step GRID
  268.             F Plot GX,GY,2
  269.          Next =
  270.  
  271.       Next =
  272.  
  273.    End If =
  274.  
  275.    =
  276.  
  277.    =
  278.  
  279.    =
  280.  
  281.    If M=3D4
  282.       TMP(0,BUFF,0)=3D-1
  283.       BUFF=3DBUFF-1
  284.       Repeat : Wait Vbl : Until Mouse Key=3D0
  285.    End If =
  286.  
  287.    =
  288.  
  289.    If BUFF>-1
  290.       For A=3D0 To BUFF
  291.          F Draw TMP(0,A,0),TMP(0,A,1) To TMP(0,A,2),TMP(0,A,3)
  292.       Next =
  293.  
  294.       =
  295.  
  296.       Ink 2
  297.       F Draw TMP(0,A-1,0),TMP(0,A-1,1) To TMP(0,A-1,2),TMP(0,A-1,3)
  298.       =
  299.  
  300.    End If =
  301.  
  302.    If BUFF>-1
  303.       For A=3D0 To BUFF
  304.          F Plot TMP(0,A,0),TMP(0,A,1),3
  305.          F Plot TMP(0,A,2),TMP(0,A,3),3
  306.       Next =
  307.  
  308.    End If =
  309.  
  310.    =
  311.  
  312.    Ink 1
  313.    Plot CX,CY
  314.    Plot X,Y
  315.    =
  316.  
  317.    =
  318.  
  319.    If M=3D1
  320.       OX=3DX
  321.       OY=3DY
  322.       Repeat =
  323.  
  324.          X=3DX Screen(X Mouse)/GRID
  325.          Y=3DY Screen(Y Mouse)/GRID
  326.          M=3DMouse Key
  327.          X=3DX*GRID
  328.          Y=3DY*GRID
  329.          Ink 1
  330.          =
  331.  
  332.          F Draw X,Y To OX,OY
  333.          =
  334.  
  335.          If GRID>1
  336.             For GX=3D0 To 320 Step GRID
  337.                For GY=3D0 To 200 Step GRID
  338.                   F Plot GX,GY,2
  339.                Next =
  340.  
  341.             Next =
  342.  
  343.          End If =
  344.  
  345.          =
  346.  
  347.          Ink 3
  348.          Plot CX,CY
  349.          Ink 1
  350.          Plot X,Y
  351.          =
  352.  
  353.          If BUFF>-1
  354.             For A=3D0 To BUFF
  355.                Ink 3
  356.                F Draw TMP(0,A,0),TMP(0,A,1) To TMP(0,A,2),TMP(0,A,3)
  357.             Next =
  358.  
  359.          End If =
  360.  
  361.          =
  362.  
  363.          Screen Swap =
  364.  
  365.          Wait Vbl =
  366.  
  367.          =
  368.  
  369.